package com.sskj.eng.vo;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

public class RestQueryVO extends RestBaseVO {

	/** 查询参数 */
	private List<RestParamVO> params = new ArrayList<RestParamVO>();

	public RestQueryVO() {

		super();
	}

	public void setParam(Map<String, RestParamVO> param) {

		if (null != param) {
			for (RestParamVO p : param.values()) {
				params.add(p);
			}
		}
	}

	public List<RestParamVO> getParams() {

		return params;
	}

	public void setParams(List<RestParamVO> params) {

		this.params = params;
	}

	public void reset() {
		setNameQueryName("");
		params.clear();
	}

}
